package com.elvin.wx.beans;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 设备数据记录表
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-16
 */
@TableName("fn_record_data")
public class RecordData extends Model<RecordData> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 设备编号
     */
    private String deviceNumber;
    /**
     * 压力值
     */
    private Float pressureVal;
    /**
     * 温度值
     */
    private Float temperatureVal;
    /**
     * 采集时间
     */
    private Date utcTime;
    /**
     * 创建时间
     */
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public Float getPressureVal() {
        return pressureVal;
    }

    public void setPressureVal(Float pressureVal) {
        this.pressureVal = pressureVal;
    }

    public Float getTemperatureVal() {
        return temperatureVal;
    }

    public void setTemperatureVal(Float temperatureVal) {
        this.temperatureVal = temperatureVal;
    }

    public Date getUtcTime() {
        return utcTime;
    }

    public void setUtcTime(Date utcTime) {
        this.utcTime = utcTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RecordData{" +
        "id=" + id +
        ", deviceNumber=" + deviceNumber +
        ", pressureVal=" + pressureVal +
        ", temperatureVal=" + temperatureVal +
        ", utcTime=" + utcTime +
        ", createTime=" + createTime +
        "}";
    }
}
